package com.zhiche.lisa.bms.dao.model.price;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 财务系数设置
 * </p>
 *
 * @author qichao
 * @since 2018-08-31
 */
@TableName("lisa_price_fi_rate")
public class PriceFiRate extends Model<PriceFiRate> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 承运商Id
     */
    @TableField("lsp_id")
    private Long lspId;
    /**
     * 承运商名称
     */
    @TableField("lsp_name")
    private String lspName;
    /**
     * 财务系数
     */
    @TableField("fi_rate")
    private BigDecimal fiRate;
    /**
     * 生效日期
     */
    @TableField("effective_date")
    private Date effectiveDate;
    /**
     * 失效日期
     */
    @TableField("invalid_date")
    private Date invalidDate;
    @TableField("gmt_create")
    private Date gmtCreate;
    @TableField("gmt_modify")
    private Date gmtModify;
    /**
     * 创建者账号
     */
    private Long creator;
    /**
     * 拥有者账号
     */
    private Long proprietor;
    /**
     * 租户
     */
    @TableField("tenant_id")
    private Long tenantId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getLspId() {
        return lspId;
    }

    public void setLspId(Long lspId) {
        this.lspId = lspId;
    }

    public String getLspName() {
        return lspName;
    }

    public void setLspName(String lspName) {
        this.lspName = lspName;
    }

    public BigDecimal getFiRate() {
        return fiRate;
    }

    public void setFiRate(BigDecimal fiRate) {
        this.fiRate = fiRate;
    }

    public Date getEffectiveDate() {
        return effectiveDate;
    }

    public void setEffectiveDate(Date effectiveDate) {
        this.effectiveDate = effectiveDate;
    }

    public Date getInvalidDate() {
        return invalidDate;
    }

    public void setInvalidDate(Date invalidDate) {
        this.invalidDate = invalidDate;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModify() {
        return gmtModify;
    }

    public void setGmtModify(Date gmtModify) {
        this.gmtModify = gmtModify;
    }

    public Long getCreator() {
        return creator;
    }

    public void setCreator(Long creator) {
        this.creator = creator;
    }

    public Long getProprietor() {
        return proprietor;
    }

    public void setProprietor(Long proprietor) {
        this.proprietor = proprietor;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "PriceFiRate{" +
                ", id=" + id +
                ", lspId=" + lspId +
                ", lspName=" + lspName +
                ", fiRate=" + fiRate +
                ", effectiveDate=" + effectiveDate +
                ", invalidDate=" + invalidDate +
                ", gmtCreate=" + gmtCreate +
                ", gmtModify=" + gmtModify +
                ", creator=" + creator +
                ", proprietor=" + proprietor +
                ", tenantId=" + tenantId +
                "}";
    }
}
